# -*- coding: utf-8 -*-

"""
 Create On: August 04, 2016
    Author: corvo
"""

from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base

#DB_HOST = '139.129.4.159'
#DB_USER = 'heraldstudio'
#DB_PWD = '2016'
DB_NAME = 'Herald_Api'

DB_HOST = '127.0.0.1'
DB_USER = 'root'
DB_PWD = 'fengyuhao'

Base = declarative_base()
engine = create_engine('mysql://%s:%s@%s/%s?charset=utf8' %
                       (DB_USER, DB_PWD, DB_HOST, DB_NAME),
                     encoding='utf-8', echo=False,
                       pool_size=100, pool_recycle=10)
